package com.girls.dao;

import com.girls.model.Key;

import java.util.List;

public interface KeyDao {
    //通过级联查询查询出钥匙和其对应的枷锁
    public Key getKeyByID(Integer id);
    //分步查询,简单方法分多步
    public Key simKeyByID(Integer id);
    //根据锁id查出所有key
    public List<Key> getKeysByChainID(Integer id);
}
